#coding:utf-8

import subprocess

def execute_cmd(cmd):
    shell_status, ret = subprocess.getstatusoutput(cmd)
    check_rets=ret.split('\n')
    print(check_rets)
    check_status=[]
    for check_ret in check_rets:
        status=int(check_ret.split(':')[0])
        check_status.append(status)
    print(check_status)
    #check_status 分别代表相机，AGV,JAKA,按摩头以及PC上Node检查结果，0代表正常
    return check_status
execute_cmd('./system_check.sh')
